<?php
namespace app\controllers\test_study;


use yii\web\Controller;
class LoadController extends Controller{
	public function actionIndex(){
		$data = [
			'admin' => [
				//'id'=>'11',
				'username' => 'smister',
				'password' => 'dggg',
				'repassword' => 'fuck',	
			]
		];
		$test = new \app\models\test_study\admin();
		$test->load($data);
		if(!$test->validate()){
			var_dump($test->getErrors());
		}
		else
			$test->save();

	}
}
?>